package com.yx.entity;


import com.fasterxml.jackson.annotation.JsonFormat;

import java.io.Serializable;
import java.sql.Date;

public class Person implements Serializable {

  private Integer id;
  private String name;
  private Integer age;
  private String password;
  @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
  private Date bornDate;
  private String email;
  private String address;

  @Override
  public String toString() {
    return "Person{" +
            "id=" + id +
            ", name='" + name + '\'' +
            ", age=" + age +
            ", password='" + password + '\'' +
            ", bornDate=" + bornDate +
            ", email='" + email + '\'' +
            ", address='" + address + '\'' +
            '}';
  }

  public Person(Integer id, String name, Integer age, String password, Date bornDate, String email, String address) {
    this.id = id;
    this.name = name;
    this.age = age;
    this.password = password;
    this.bornDate = bornDate;
    this.email = email;
    this.address = address;
  }

  public Person(String name, Integer age, String password, Date bornDate, String email, String address) {
    this.name = name;
    this.age = age;
    this.password = password;
    this.bornDate = bornDate;
    this.email = email;
    this.address = address;
  }

  public Person() {
  }

  public Integer getId() {
    return id;
  }

  public void setId(Integer id) {
    this.id = id;
  }


  public String getName() {
    return name;
  }

  public void setName(String name) {
    this.name = name;
  }


  public Integer getAge() {
    return age;
  }

  public void setAge(Integer age) {
    this.age = age;
  }


  public String getPassword() {
    return password;
  }

  public void setPassword(String password) {
    this.password = password;
  }


  public Date getBornDate() {
    return bornDate;
  }

  public void setBornDate(Date bornDate) {
    this.bornDate = bornDate;
  }


  public String getEmail() {
    return email;
  }

  public void setEmail(String email) {
    this.email = email;
  }


  public String getAddress() {
    return address;
  }

  public void setAddress(String address) {
    this.address = address;
  }

}
